import axios from 'axios'
axios.defaults.withCredentials = true;
let APPCONFIG: any = (<any>window).APPCONFIG
let host = APPCONFIG.Host
//查询所有商品
export function getHomeProductDisplayList() {
    return axios({
        url: `${host}/getHomeProductDisplayList`,
        method: 'GET',
    })
}
//搜索商品名称
export function getProductNameSearch(name) {
    return axios({
        url: `${host}/getProductNameSearch?name=` + name,
        method: 'GET',
    })
}
//查看全部
export function getSeeAllByClick(categoryId, pageSize, pageNum) {
    return axios({
        url: `${host}/getSeeAllByClick?categoryId=` + categoryId + '&pageSize=' + pageSize + '&pageNum=' + pageNum,
        method: 'GET',
    })
}
